package com.czj.service.impl;

import com.czj.dao.VipMapper;
import com.czj.model.User;
import com.czj.model.Vip;
import com.czj.service.VipService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class VipServiceImpl implements VipService {

    @Autowired
    private VipMapper vipMapper;

    @Override
    public boolean resigter(Vip vip) {
        return vipMapper.resigter(vip);
    }

    @Override
    public Vip select(Integer id) {
        return vipMapper.select(id);
    }

    @Override
    public boolean updateEndTime(Vip vipResult) {
        return vipMapper.updateEndTime(vipResult);
    }
}
